<template>
    <div class="bg">
        <div>
            <img src="https://img95.699pic.com/xsj/14/kx/ul.jpg%21/fh/300" alt="Brand Logo" class="logo" />
            <p class="head">健康医疗，小希陪诊</p>
        </div>
        <van-loading size="40px" class="loading" />
    </div>
</template>
<script setup>
import { onMounted } from 'vue';
import { useRouter } from 'vue-router';
const router = useRouter();
let phone = localStorage.getItem('reginame');
onMounted(() => {
    setTimeout(() => {
        if (!phone) {
            router.push('/first_login');
        }else {
            router.push('/relogin');
        }
    }, 3000);
});
</script>
<style scoped>
.bg {
    background-color: rgb(150, 239, 229);
    height: 100vh;
    width: 100%;
}

.logo {
    width: 20%;
    height: 20%;
    margin-left: 40%;
    margin-top: 50%;
    border-radius: 10px;
}

.head {
    margin-top: 40px;
    text-align: center;
    color: #fff;
    font-size: 20px;
}

.loading {
    margin-top: 100px;
    color: rgb(0, 119, 255);
    text-align: center;
}
</style>
